package model.decoder;

import android.hardware.Camera.Size;

import com.google.zxing.Result;
import com.google.zxing.multi.qrcode.QRCodeMultiReader;

public class ZXingQRDecoder extends ZXingDecoder
{	
	//Constructor
	public ZXingQRDecoder(Size previewSize, byte[]... bytes) 
	{
		_previewSize = previewSize;
		_multiReader = new QRCodeMultiReader();
	}
	
	@Override
	protected Result[] doInBackground(byte[]... bytes) 
	{
		Result[] results = super.doInBackground(bytes);
		((QRCodeMultiReader) _multiReader).reset();
		return results;
	}
}
